package com.lill.system.web;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import com.lill.common.component.util.R;
import com.lill.system.model.SysPermLevelEntity;
import com.lill.system.service.ISysPermLevelService;

/**
 * 系统权限级别Controller
 *
 * @author lill
 * @date 2020-01-13 16:00:53
 */
@RestController
@RequestMapping("/sys/permlevel")
public class SysPermLevelController {
    @Autowired
    private ISysPermLevelService permLevelService;

    /**
     * 查看所有列表
     */
    @RequestMapping("/queryAll")
    public R queryAll(@RequestParam Map<String, Object> params) {
        List<SysPermLevelEntity> list = permLevelService.queryList(params);
        return R.ok().put("list", list);
    }
}
